import Guide from '~/components/layout/guide'
import Snippet from '~/components/snippet'
import Caption from '~/components/text/caption'
import Link from '~/components/text/link'
import { Image } from '~/components/media'
import DeploySection from '~/components/guides/deploy-section'

export const meta = {
  title: 'Deploy UmiJS with ZEIT Now',
  description: 'Create an UmiJS app and deploy it live with ZEIT Now.',
  name: 'UmiJS',
  type: 'app',
  published: '2019-11-04T12:00:00.860Z',
  authors: ['msweeneydev'],
  url: '/guides/deploying-umijs-with-zeit-now',
  example: 'umijs',
  demo: 'https://umijs.now-examples.now.sh',
  image:
    'https://og-image.now.sh/**Deploy%20UmiJS%20Apps**%20%3Cbr%2F%3E%20with%20ZEIT%20Now.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2Fassets.zeit.co%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fzeit-black-triangle.svg&images=https%3A%2F%2Fgithub.com%2Fumijs.png%3Fsize%3D200&widths=300&widths=300&heights=300&heights=300',
  editUrl: 'pages/guides/deploying-umijs-with-zeit-now.mdx',
  lastEdited: '2020-02-04T12:49:00.000Z'
}

[UmiJS](https://umijs.org/) is a pluggable enterprise-level React application framework.

## Step 1: Set Up Your Umi Project

Set up an Umi app with [`npm`](https://www.npmjs.com/) and move into the project directory, choosing the options **App**, **TypeScript**, and no additional functionality where prompted:

<Snippet dark text="npm init umi my-umi-project && cd my-umi-project" />
<Caption>Initializing an Umi app with <Link href="https://www.npmjs.com/">npm</Link> and moving into the project directory.</Caption>

## Step 2: Deploying Your Umi App with ZEIT Now

<DeploySection meta={meta} />

export default ({ children }) => <Guide meta={meta}>{children}</Guide>

export const config = {
  amp: 'hybrid'
}
